package Ricardo;

import java.util.Arrays;

public class Struct {
	private String[] nome;
	private int[] numConta;
	private double[] saldo;
	
/*	public Struct(String[] n,int[] nu,double[] s){
		setNome(n);
		setNumConta(nu);
		saldo=s;
		
	}*/
	
	public Struct(){
		nome = new String[]{"Paulo Ramos","Ricardo Borges","Rodrigo Souto","Claudia Raio",
				"Maria Bonita","Veronica Gomes","Raimundo Silva",
				"Caio Blindo","Alis Costa","Pedro Vailto"} ;
		numConta = new int[]  { 87, 68, 94, 100, 83, 78, 85, 91, 76, 87 };
		saldo = new double[] {3454.87,10987.51,7554.17,107.48,957.38,13922.55,6721.43,5087.36,
				4621.19,457.81};
	}
	@Override
	public String toString() {
	    return Arrays.toString(nome) + "\n " + Arrays.toString(numConta)+"\n "+Arrays.toString(saldo)+"\n";
	}
	
}
/*
	public String[] getNome() {
		return nome;
	}

	public void setNome(String[] nome) {
		nome = new String[]{"Paulo Ramos","Ricardo Borges","Rodrigo Souto","Claudia Raio",
				"Maria Bonita","Veronica Gomes","Raimundo Silva",
				"Caio Blindo","Alis Costa","Pedro Vailto"} ;
		this.nome = nome;
	}

	public int[] getNumConta() {
		return numConta;
	}

	public void setNumConta(int[] numConta) {
		numConta = new int[]  { 87, 68, 94, 100, 83, 78, 85, 91, 76, 87 };
		this.numConta = numConta;
	}
	
	public double[] getSaldo() {
		return saldo;
	}

	public void setNumConta(double[] saldo) {
		saldo = new double[] {3454.87,10987.51,7554.17,107.48,957.38,13922.55,6721.43,5087.36,
				4621.19,457.81};
		this.saldo = saldo;
	}
	
	@Override
	public String toString() {
	    return Arrays.toString(saldo) + " " + Arrays.toString(numConta);
	}
	
}
		


/*
 * public void setNome(String[] nome) {
		
		nome = new String[]{"Paulo Ramos","Ricardo Borges","Rodrigo Souto","Claudia Raio",
				"Maria Bonita","Veronica Gomes","Raimundo Silva",
				"Caio Blindo","Alis Costa","Pedro Vailto"} ;
		this.nome = nome;
	}
  public int getMinimum()
 
	{
	int lowGrade = grades[ 0 ]; // assume grades[ 0 ] is smallest
	// loop through grades array
	for ( int grade : numConta )
	{
	// if grade lower than lowGrade, assign it to lowGrade
	if ( grade < lowGrade )
	lowGrade = grade; // new lowest grade
	} // end for
	
	return lowGrade; // return lowest grade
	} // end method getMinimum*/